<?php
namespace App\Models\Products;

use Illuminate\Database\Eloquent\Model;

class Product extends Model {
    protected $table = 'catalog_product_entity';

    public static function getProduct($entity_id){
        return self::whereIn('entity_id', [$entity_id])->select(['entity_id','attribute_set_id','type_id','sku'])->limit(2,3)->get()->toArray();
    }

    public static function getProducts(){
        return self::select(['entity_id','attribute_set_id','type_id','sku'])->limit(1)->offset(2)->get()->toArray();
    }

}
